package com.zjxmyq.authorization.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.Table;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
@TableName("xm_company")
@Table(name="xm_company",comment = "客户公司表")
public class Company extends BaseDomain {
    @TableId(type = IdType.AUTO)//mybatis-plus主键注解
    @Column(comment = "公司id",type = MySqlTypeConstant.INT,length = 11,isKey = true,isAutoIncrement = true)
    private int id;
    @Column(comment = "客户公司名",type = MySqlTypeConstant.VARCHAR,length = 32)
    private String name;
    @Column(comment = "联系电话",type = MySqlTypeConstant.VARCHAR,length = 16)
    private String telNumber;

}
